<?php

namespace App\Models;

class PackagesInfo extends BaseModel
{
    protected $table = 'packages_info';

    public function getStateAttribute($value)
    {
        $array = [
            'Pending pickup' , 'Picked up' , 'Pending transit' , 'In transit' , 'Pending delivery' , 'Delivering' , 'Signed'
        ];
        return $array[$value];
    }
}
